package com.czl.elm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czl.elm.domain.Shop;
import com.czl.elm.domain.Shopdetails;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zuoleiChen
 * @since 2021-05-21
 */
@Mapper
@Repository
public interface ShopMapper extends BaseMapper<Shop> {

    IPage<Shop> selectAllshop(Page<Shop> page);

    Shopdetails selectShopDetails(Integer shopid);

    int addShopDetails(Shopdetails shopdetails);

    Shop selectShopBasicById(Integer shopid);

    List<Map<String, Object>> getShopByShopLabel(String shopLabel);

    List<Map<String, Object>> getShopByShopLabelJoinRedParper(String shopLabel);

    Map<String,Object> selectShopBasic(Integer shopid);
}
